define(['./PDFConfig'],function(PDFConfig) {   
	'use strict';     

	var WebPDF = {
		setConfig : function(config) {
			PDFConfig.s3Key = config.s3Key	
		}
	};

	var dnmmy = $("body");        
	WebPDF.DocumentLoadFinished = function(callback) {
		if (typeof callback == "function") {
			dnmmy.bind("DocumentLoadFinished", callback);
		} else {
			dnmmy.trigger("DocumentLoadFinished", [callback]);
		}
	};

	WebPDF.PageContainerCreated = function(callback) {
		if (typeof callback == "function") {
			dnmmy.bind("PageContainerCreated", callback);
		} else {
			dnmmy.trigger("PageContainerCreated", [callback]);
		}
	};
	WebPDF.PageShowCompleted = function(callback) {
		if (typeof callback == "function") {
			dnmmy.bind("PageShowCompleted", callback);
		} else {
			dnmmy.trigger("PageShowCompleted", [callback]);
		}
	};		
	return WebPDF;
});